package com.kaiyidiannao.activity.daydaycoupon;

import android.os.Bundle;
import android.view.View;
import android.widget.TextView;
import com.kaiyidiannao.common.BaseActionBarActivity;
import com.kaiyidiannao.main.R;
import com.kaiyidiannao.view.ActionBarView;

/**
 * Created by david on 14-4-15.
 * 天天惠 - 购物车
 */
public class DdcShoppingSucessActivity extends BaseActionBarActivity {

    private String product_id, alipay_method, price_count;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        super.setContentView(R.layout.daydaycoupon_shopping_sucess_activity);

        product_id =  getIntent().getStringExtra("product_id"); //订单号码
        alipay_method =  getIntent().getStringExtra("alipay_method");//支付方式
        price_count =  getIntent().getStringExtra("price_count");//总额

        //处理ActionBar
        findActionBar();
        findViews();
    }

    private void findActionBar() {
        actionBarView = (ActionBarView) findViewById(R.id.actionbar);
        actionBarView.setTitle("交易成功");
    }

    private void findViews() {
        ((TextView) findViewById(R.id.shpping_sucess_id)).setText(product_id);
        ((TextView) findViewById(R.id.shpping_sucess_alipay_method)).setText(alipay_method);
        ((TextView) findViewById(R.id.shpping_sucess_price_count)).setText(price_count);
    }
}
